package com.recipedb.recipedb.service;

import com.recipedb.recipedb.entity.RecipeComment;
import java.util.List;
import java.util.Optional;

public interface RecipeCommentService {
    RecipeComment save(RecipeComment entity);
    void deleteById(Long id);
    Optional<RecipeComment> findById(Long id);
    List<RecipeComment> findAll();

    // 根据食谱ID查询评论
    List<RecipeComment> findByRecipeId(Long recipeId);
}
